package com.ysh.ssm.service;

import com.github.pagehelper.PageInfo;
import com.ysh.ssm.pojo.TbUser;
import org.apache.ibatis.annotations.Param;

/**
 * 袁胜虎 on 2022/8/31 21:45
 */
public interface UserService {
    TbUser findById(Long id);

    void addUser(TbUser tbUser);

    PageInfo<TbUser> findByPage(int pageSize, int pageNum);

    TbUser findUsernameAndPassword(@Param("username") String username, @Param("password") String password);

    void deleteById(Long id);

    void updateUser(String username,String password,String email,String gender,Long id);
}
